package com.zjsy.dao;

import java.util.List;

import com.zjsy.po.Magazine;
import com.zjsy.po.MagazineNewList;
import com.zjsy.po.MagazineNews;
import com.zjsy.po.MainNewsList;

public interface MagazineDao {
	
	public void addMagazine(Magazine magazine);
	
	public void addMagazineNews(MagazineNews magazinenews);
	
	public String findFeatureByName(String name);
	
	public String findFeatureNameById(String id);
	
	public void addFeature(String name);
	
	//查找所有杂志
	public List<Magazine> findMagazine();
	
	public List<Integer> selectPeridical();
	
	public List<MagazineNewList>  findMagazineNew();
	
	
	public Magazine findMagazineById(String id);
	
	public MagazineNews findMagazineNewsById(String id);
	
	
	//查找杂志--分页
	public List<Magazine> findMagazineByPage(int min,int max);
	
	//查找杂志--分页
	public List<MagazineNewList> findMagazineNewByPage(int min,int max);

	public void updateMagezine(Magazine magazine);
	
	public void updateMagazineNews(MagazineNews magazinenews);

	public void deleteMagazineById(String id);
	
	public void deleteMagazineNewsById(String id);
	
	public Magazine findperiodsById(String id);
	
	public String   findIdByperiods(String periods);

}
